<!DOCTYPE html>
<html>
<head>
  <meta charset="UTF-8">
  <title>新用户注册</title>
  <style>
    body {
      background-size: cover;
      margin: 0;
      padding: 0;
      display: flex;
      justify-content: center;
      align-items: center;
      min-height: 100vh;
    }

    .register-box {
      background-color: #fff;
      padding: 500px;
      width: 300px;
      box-shadow: 0 0 10px rgba(0, 0, 0, 0.1);
    }

    .register-title {
      margin-top: 0;
      margin-bottom: -80px;
      margin-left: -200px;
    }

    .golden-text {
      color: #ffb600; /* 金色 */
    }

    .register-form table {
      width: 100%;
    }

    .register-form td {
      padding: 8px;
    }

    .register-form label {
      display: inline-block;
      width: 80px;
      text-align: right;
    }

    .register-form input[type="text"],
    .register-form input[type="password"],
    .register-form input[type="email"] {
      width: 200px;
      padding: 5px;
      border: 1px solid #ccc;
    }

    .register-form input[type="radio"] {
      margin-right: 5px;
    }

    .register-form input[type="submit"] {
      padding: 8px 20px;
      background-color: #ffcc00;
      border: none;
      cursor: pointer;
    }
    .verify-group {
      display: flex;
      gap: 10px;
      align-items: center;
    }

    .verify-group input {
      flex: 1;
    }

    .verify-group img {
      width: 100px;
      height: 38px;
      border: 1px solid #ddd;
      border-radius: 4px;
    }

    input[type="date"]::before {
      content: attr(placeholder);
      color: #999;
    }
    input[type="date"]:focus::before,
    input[type="date"]:valid::before {
      content: "";
    }
  </style>
</head>
<body>
<div class="register-box">
  <h2 class="register-title">
    <span class="golden-text">新用户注册</span><br>
    USER REGISTER
  </h2>
  <form class="register-form" action="#" method="get">
    <table>
      <tr>
        <td><label for="username">用户名</label></td>
        <td><input type="text" id="username" name="username" placeholder="请输入用户名"></td>
      </tr>
      <tr>
        <td><label for="password">密码</label></td>
        <td><input type="password" id="password" name="password" placeholder="请输入密码"></td>
      </tr>
      <tr>
        <td><label for="email">Email</label></td>
        <td><input type="email" id="email" name="email" placeholder="请输入邮箱"></td>
      </tr>
      <tr>
        <td><label for="name">姓名</label></td>
        <td><input type="text" id="name" name="name" placeholder="请输入姓名"></td>
      </tr>
      <tr>
        <td><label for="tel">手机号</label></td>
        <td><input type="text" id="tel" name="tel" placeholder="请输入手机号"></td>
      </tr>
      <tr>
        <td><label>性别</label></td>
        <td>
          <input type="radio" name="gender" value="male"> 男
          <input type="radio" name="gender" value="female"> 女
        </td>
      </tr>
      <tr>
        <td><label for="birthday">出生日期</label></td>
        <td><input type="date" id="birthday" name="birthday" placeholder="yyyy/mm/dd"></td>
      </tr>
      <tr>
        <td><label for="checkcode">验证码</label></td>
        <td class="verify-group">
          <input type="text" id="checkcode" name="checkcode" placeholder="请输入验证码">
          <img src="img/verify_code.jpg" alt="验证码">
        </td>
      </tr>
      <tr>
        <td colspan="2" align="center">
          <input type="submit" value="注册">
        </td>
      </tr>
    </table>
  </form>
</div>
</body>
</html>
